package com.yz.code_test;

import java.math.BigDecimal;

/**
 * @author Administrator
 */
public class BigTest {
    public static void main(String[] args) {
            BigDecimal mNum = new BigDecimal("5");
            BigDecimal nNum = new BigDecimal("50");
            BigDecimal bscs = new BigDecimal(5 * 100);
            BigDecimal two = new BigDecimal("2.000000");

        System.out.println(bscs.divide(mNum, 6, BigDecimal.ROUND_CEILING).add(bscs.divide(nNum, 6, BigDecimal.ROUND_CEILING)).divide(two, 6, BigDecimal.ROUND_CEILING));
    }
}
